﻿@model StockShark.Models.Order

@{
    ViewBag.Title = ViewBag.Header = "Nowe zlecenie kupna - " + Model.Paper.Name;
}

<p>Aktualny kurs waloru <strong>@Model.Paper.Name</strong>: @Model.Paper.EstimatedPrice PLN</p>
<p>Wolne środki na rachunku <strong>@Model.BrokerageAccount.Name</strong>: @Model.BrokerageAccount.Balance PLN</p>

<h4>Parametry zlecenia</h4>
@using (Html.BeginForm())
{
<div class="editor-label">
@Html.LabelFor(model => Model.Quantity)
</div>
<div class="editor-field">
@Html.EditorFor(model => Model.Quantity)
</div>
<span class="editor-field">
@Html.EditorFor(model => Model.AllowPartial)
</span>
<span class="editor-label">
@Html.LabelFor(model => Model.AllowPartial)
</span>
<div class="editor-label">
@Html.LabelFor(model => Model.PriceLimit) 
</div>
<div class="editor-field">
@Html.EditorFor(model => Model.PriceLimit)  @Html.ValidationMessageFor(m => m.PriceLimit)
<br/> 0 -> zlecenie PKC (Po Każdej Cenie)
</div>
<div class="editor-label">
@Html.LabelFor(model => Model.Deadline)
</div>
<div class="editor-field">
@Html.EditorFor(model => Model.Deadline)
</div>
@Html.Hidden("account", Model.BrokerageAccount.Name)
@Html.HiddenFor(model => Model.PaperId)
<p>
    <input type="submit" value="Złóż zlecenie" />
</p>
}